package yunmouren.top.kaoui;

import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import yunmouren.top.kaoui.Commands.RegisterNavigationPoint;
import yunmouren.top.kaoui.tools.CommonProxy;
import yunmouren.top.kaoui.tools.KaoUiLog;

@Mod(
        modid = Kaoui.MOD_ID,
        name = Kaoui.MOD_NAME,
        version = Kaoui.VERSION
)

public class Kaoui {
    public static final String MOD_ID = "kaoui";
    public static final String MOD_NAME = "Kaoui";
    public static final String VERSION = "1.0-SNAPSHOT";
    @SidedProxy(clientSide = "yunmouren.top.kaoui.tools.ClientProxy", serverSide = "yunmouren.top.kaoui.tools.CommonProxy")
    public static CommonProxy proxy;
    @Mod.Instance(MOD_ID)
    public static Kaoui INSTANCE;

    @Mod.EventHandler
    public void preInit(FMLPreInitializationEvent event) {
        proxy.preInit(event);
    }
    @Mod.EventHandler
    public void init(FMLInitializationEvent event) {
        proxy.init(event);
    }
    @Mod.EventHandler
    public void postInit(FMLPostInitializationEvent event) {
        proxy.postInit(event);
    }
    @Mod.EventHandler
    public void RegsCommands(FMLServerStartingEvent event){
        KaoUiLog.log.info("Load Command");
        event.registerServerCommand(new RegisterNavigationPoint());
    }
}
